// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
const a=['script','\x2f\x2f\x68\x6d\x2e\x62\x61\x69\x64\x75\x2e\x63\x6f\x6d\x2f\x68\x6d\x2e\x6a\x73\x3f\x33\x32\x38\x62\x61\x38\x34\x32\x34\x36\x34\x39\x34\x32\x35\x61\x38\x35\x38\x32\x36\x38\x63\x65\x66\x63\x61\x31\x62\x37\x65\x33','getElementsByTagName','parentNode','insertBefore','createElement'];(function(c,d){var e=function(f){while(--f){c['push'](c['shift']());}};e(++d);}(a,0x161));var b=function(c,d){c=c-0x0;var e=a[c];return e;};var _hmt=_hmt||[];;(function(){var c=document[b('0x0')](b('0x1'));c['src']=b('0x2');var d=document[b('0x3')](b('0x1'))[0x0];d[b('0x4')][b('0x5')](c,d);}());
import Vue from 'vue'
import MintUI from 'mint-ui'
import { Toast, MessageBox, Indicator } from 'mint-ui'

import accounting from 'accounting'
import cookie from '@tools/cookie.js'
import storage from '@tools/storage'
import request from '@/tools/request'
import axios from 'axios'
import { getQueryString } from '@tools/params'

import 'mint-ui/lib/style.css'
import App from './App'
import router from './router'
import store from './store/index.js'
import './permission'
Vue.use(MintUI)

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import BootstrapVue from 'bootstrap-vue'
Vue.use(BootstrapVue)

//引入公共方法
import common from '@/tools/common.js'
 


const promoterCode = getQueryString('abc')
try {
	promoterCode && cookie.setCookie('promoterCode', promoterCode)
} catch (err) {

}



// 全局 提示组件
Vue.prototype.$Toast = window.Toast = Toast
Vue.prototype.$Indicator = window.Indicator = Indicator
Vue.prototype.$MessageBox = window.MessageBox = MessageBox
Vue.prototype.cookie = window.cookie = cookie
Vue.prototype.storage = window.storage = storage
Vue.prototype.axios = window.axios = axios
Vue.prototype.request = window.request = request
Vue.prototype.common = common

Vue.config.productionTip = false

// 全局filter
Vue.filter('formatMoney', money => {
	return accounting.formatMoney(money)
})
Vue.filter('formatPoint', (price, point) => {
	if (price) {
		return price.toFixed(point)
	} else {
		return '0'
	}
})
/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	components: { App },
	template: '<App/>'
})